import request from './request'
import {passwordHash} from '../utilities/crypto'
import {app} from '../utilities/app'
// 查询企业基本信息列表
export function query ({currentPage = 1, perPage = 10,companyNo} = {}) {
  return request({
    url: '/company/queryCompanyApplyInfoChangeListPage.do',
    method: 'POST',
    body: {currentPage, perPage,companyNo}
  })
}

export function checkCompany ({applyNo,status,applyDescribe}) {
  return request({
    url: '/company/checkCompanyInfoUpdate.do',
    method: 'POST',
    body: {applyNo,status,applyDescribe}
  })
}

export function checkDetail (applyNo) {
    return request({
        url: '/company/queryComapnyApplyInfoCheck.do',
        method: 'POST',
        body: {applyNo}
    })
}

// 查询企业积分申请列表
export function queryIntegralApply ({currentPage = 1, perPage = 10,companyName} = {}) {
  return request({
    url: '/company/companyApplyDetailInfoListPage.do',
    method: 'POST',
    body: {currentPage, perPage,companyName}
  })
}
// 企业积分申请
export function companyApplyInfo ({chargeAmt,applyStatus,applyDescribe}) {
  return request({
    url: '/company/companyApplyInfo.do',
    method: 'POST',
    body: {chargeAmt,applyStatus,applyDescribe}
  })
}
// 企业积分审核
export function companyApplyVerify ({applyNo,companyNo,applyStatus}) {
  return request({
    url: '/company/companyApplyInfoVerify.do',
    method: 'POST',
    body: {applyNo,companyNo,applyStatus}
  })
}